package com.smsc.headend.task.engine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smsc.headend.module.data.dto.MeterProgressDTO;
import com.smsc.headend.module.data.entity.RdMeterReadsLp;
import com.smsc.headend.module.meterscheme.entity.CollMeterTaskPlan;

import java.util.List;

/**
 * @author liangli
 * @date 2020/9/2
 */
public interface CollMeterTaskPlanService extends IService<CollMeterTaskPlan> {
    void saveMeterCollectProgress(Long tv, Long meterId, Long profileId);

    /**
     * 更新load profile data统计信息
     *
     * @param meterReadsLp
     */
    void dataProgressIntegrityUpdate(List<RdMeterReadsLp> meterReadsLp);


    Boolean batchSaveMeterCollectProgress(List<MeterProgressDTO> dtoList);

    CollMeterTaskPlan getCollMeterTaskPlan(Long meterId, Long profileDataItemId);

    CollMeterTaskPlan updateCache(CollMeterTaskPlan collMeterTaskPlan);
}
